<?php

class PNShopArray extends PNObjectArray {
  function PNShopArray($init=null, $where='')
  {
    $this->PNObject();

    $this->_objType       = 'icarrent_shop';
    $this->_objField      = 'id';
    $this->_objPath       = 'form';

    $this->_objJoin[]     = array ( 'join_table'  =>  'icarrent_province',
                            'join_field'          =>  array('name'),
                            'object_field_name'   =>  array('province_name'),
                            'compare_field_table' =>  'province_id',
                            'compare_field_join'  =>  'id');
    $this->_objJoin[]     = array ( 'join_table'  =>  'icarrent_district',
                            'join_field'          =>  array('name'),
                            'object_field_name'   =>  array('district_name'),
                            'compare_field_table' =>  'district_id',
                            'compare_field_join'  =>  'id');


  }

}